package java5.enumeration;

import java.util.HashSet;
import java.util.Set;

public class SetIntegerTest {


    private final static Set<Integer> wheatErrorCode = new HashSet<>();
    static {
        ErrorCodeEnum[] values = ErrorCodeEnum.values();
        for (ErrorCodeEnum codeEnum:values) {
            wheatErrorCode.add(codeEnum.getCode());
        }
    }


    public static void main(String[] args) {
        int i =300;
        System.out.println(wheatErrorCode.contains(i));
    }


}
